\hypertarget{classmiddleware_1_1DataProxyFactory}{
\section{middleware::DataProxyFactory Class Reference}
\label{classmiddleware_1_1DataProxyFactory}\index{middleware::DataProxyFactory@{middleware::DataProxyFactory}}
}


Used to instantiate a \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy} object.  




{\ttfamily \#include $<$data\_\-proxy\_\-factory.hpp$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classmiddleware_1_1DataProxyFactory_a7a58663d0c58bfa460ec3c0a3447f947}{DataProxyFactory} (\hyperlink{namespacemiddleware_af3e14e19f595741e350da505b97c051c}{DataProxyDirection} dir, std::string ip\_\-w, std::string port\_\-w)
\item 
\hyperlink{classmiddleware_1_1DataProxyFactory_ae36db93f290c9cb131dee806a56a5174}{$\sim$DataProxyFactory} ()
\item 
\hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy} $\ast$ \hyperlink{classmiddleware_1_1DataProxyFactory_a5bca25a4aa8c756a592436b2248e1f2b}{getProxy} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Used to instantiate a \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy} object. Manages instantiation of a \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy} object. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classmiddleware_1_1DataProxyFactory_a7a58663d0c58bfa460ec3c0a3447f947}{
\index{middleware::DataProxyFactory@{middleware::DataProxyFactory}!DataProxyFactory@{DataProxyFactory}}
\index{DataProxyFactory@{DataProxyFactory}!middleware::DataProxyFactory@{middleware::DataProxyFactory}}
\subsubsection[{DataProxyFactory}]{\setlength{\rightskip}{0pt plus 5cm}DataProxyFactory::DataProxyFactory (
\begin{DoxyParamCaption}
\item[{{\bf DataProxyDirection}}]{ dir, }
\item[{std::string}]{ ip\_\-w, }
\item[{std::string}]{ port\_\-w}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DataProxyFactory_a7a58663d0c58bfa460ec3c0a3447f947}
Constructs the factory specifying whether the final \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy} will be able to send or receive data to a \hyperlink{classmiddleware_1_1Worker}{Worker} or from a \hyperlink{classmiddleware_1_1Manager}{Manager}. 
\begin{DoxyParams}{Parameters}
{\em dir} & Mode of factory, do we want a send-\/enabled \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy}, or a receive-\/enabled \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy}? \\
\hline
{\em ip\_\-w} & Ip v4 address of the \hyperlink{classmiddleware_1_1Worker}{Worker} to send \hyperlink{classmiddleware_1_1Data}{Data} to, or for \hyperlink{classmiddleware_1_1Worker}{Worker} to bind itself. \\
\hline
{\em port\_\-w} & TCP Port number of the \hyperlink{classmiddleware_1_1Worker}{Worker} to send \hyperlink{classmiddleware_1_1Data}{Data} to, or for \hyperlink{classmiddleware_1_1Worker}{Worker} to bind itself. \\
\hline
\end{DoxyParams}
\hypertarget{classmiddleware_1_1DataProxyFactory_ae36db93f290c9cb131dee806a56a5174}{
\index{middleware::DataProxyFactory@{middleware::DataProxyFactory}!$\sim$DataProxyFactory@{$\sim$DataProxyFactory}}
\index{$\sim$DataProxyFactory@{$\sim$DataProxyFactory}!middleware::DataProxyFactory@{middleware::DataProxyFactory}}
\subsubsection[{$\sim$DataProxyFactory}]{\setlength{\rightskip}{0pt plus 5cm}DataProxyFactory::$\sim$DataProxyFactory (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DataProxyFactory_ae36db93f290c9cb131dee806a56a5174}
Destroys factory. When factory encounters destructor, dynamic allocated memory for proxy is AUTOMATICALLY released; when a factory dies, its proxy is deleted. This happens also when factory is called to get a proxy more than one time. 

\subsection{Member Function Documentation}
\hypertarget{classmiddleware_1_1DataProxyFactory_a5bca25a4aa8c756a592436b2248e1f2b}{
\index{middleware::DataProxyFactory@{middleware::DataProxyFactory}!getProxy@{getProxy}}
\index{getProxy@{getProxy}!middleware::DataProxyFactory@{middleware::DataProxyFactory}}
\subsubsection[{getProxy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf DataManagerProxy} $\ast$ DataProxyFactory::getProxy (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classmiddleware_1_1DataProxyFactory_a5bca25a4aa8c756a592436b2248e1f2b}
Gets a well built \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy}: attention, a new instance is created via dynamic allocation. If a previous proxy was generated, it will be detroyed. \begin{DoxyReturn}{Returns}
Returns the pointer to the dynamically allocated \hyperlink{classmiddleware_1_1DataManagerProxy}{DataManagerProxy}. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
data\_\-proxy\_\-factory.hpp\item 
data\_\-proxy\_\-factory.cpp\end{DoxyCompactItemize}
